import React from "react";
import SearchHeader from '../../components/SearchHeader/index'
import { Flex } from 'antd-mobile';
import styles from './index.module.scss'

// 顶部的搜索框
let { label } = JSON.parse(localStorage.getItem('cityInfo'))
export default class HouseList extends React.Component {
    state = {
        cityInfo: '上海',
    }
    componentDidMount() {

    }
    render() {
        return (
            <div>
                <Flex className={styles.heander}>
                    < i className='iconfont icon-back'
                        onClick={() => this.props.history.go(-1)} />

                    {/* 这里的className是传值 不是直接修改 */}
                    <SearchHeader className={styles.searchHeader} cityInfo={label}></SearchHeader>
                </Flex>
            </div>
        )
    }
}